import 'package:black_movice/api/api_urls.dart';
import 'package:black_movice/net/http_client.dart';

// 定义登录接口的模拟响应数据
const loginMockData = {
  "code": 200,
  "msg": "登录成功",
  "data": {
    "id": 123,
    "phone_number": "13800138000",
    "password": "hashed_password",
    "referral_code": "ABC123",
    "referred_count": 10,
    "created_at": "2024-01-01 12:00:00",
    "updated_at": "2024-01-02 13:00:00"
  }
};

// 设置登录接口的模拟响应
void setupLoginMock(HttpClient httpClient) {
  httpClient.setUseMock(true);
  httpClient.setupMockResponse(ApiUrls.login, loginMockData);
}
